package com.zhiwei.service;

import com.zhiwei.mapper.ProductsMapper;
import com.zhiwei.pojo.Products;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProductsServiceImpl implements ProductsService{
    @Autowired
    private ProductsMapper productsMapper;

    public Products getProduct(Integer productId) {
        return productsMapper.selectById(productId);
    }
}
